package graph.model;

public class Edge {
	private Vertex begin;
	private Vertex end;
	private int weight;
	
	public Edge( Vertex begin, Vertex end, int weight ) {
		this.begin = begin;
		this.end = end;
		this.weight = weight;
	}

	public Vertex getBegin() {
		return begin;
	}

	public void setBegin( Vertex begin ) {
		this.begin = begin;
	}

	public Vertex getEnd() {
		return end;
	}

	public void setEnd( Vertex end ) {
		this.end = end;
	}

	public int getWeight() {
		return weight;
	}

	public void setWeight( int weight ) {
		this.weight = weight;
	}
}
